A Simple Generic Library for C

نویسندگان

  • Marian Vittek
  • Peter Borovanský
  • Pierre-Etienne Moreau
چکیده

This paper presents Sglib, a C library freely inspired by the Standard Template Library (STL). In opposition to C++, the C language lacks any support for generic programming. Our library results from the idea to create a generic library of reusable algorithms through the C preprocessor.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Complexity Analysis for Simple Generic Programs

The C++ Standard Template Library (STL) provides generic, high-performance algorithms and data types. STL also defines performance guarantees, but it is left as a non-trivial task to the library user to choose appropriate algorithms and data types for a particular problem. In the present paper, we describe an analysis to aid library users in selecting types for use in a generic programs. The an...

متن کامل

Towards a diagrammatic modeling of the LinBox C++ linear algebra library

We propose a new diagrammatic modeling language, DML. The paradigm used is that of the category theory and in particular of the pushout tool. We show that most of the object-oriented structures can be described with this tool and have many examples in C++, ranging from virtual inheritance and polymorphism to template genericity. With this powerful tool, we propose a quite simple description of ...

متن کامل

Semantics-Driven Genericity: A Sequel to the Static C++ Object-Oriented Programming Paradigm (SCOOP 2)

Classical (unbounded) genericity in C++03 defines the interactions between generic data types and algorithms in terms of concepts. Concepts define the requirements over a type (or a parameter) by expressing constraints on its methods and dependent types (typedefs). The upcoming C++0x standard will promote concepts from abstract entities (not directly enforced by the tools) to language construct...

متن کامل

Real-life efficacy of generic sofosbuvir/ledipasvir for treatment of Iranian patients with chronic hepatitis C: A cohort study

Background: Treatment of hepatitis C virus (HCV) infection with recently introduced direct-acting antiviral agents (DAA) is effective and safe, however there is little known regarding safety and efficacy of generic DAAs in the real-life clinical setting. This study aimed to evaluate the efficacy and safety of generic sofosbuvir/ledipasvir (SOF/LDV) in a real-life clinical experience. Methods: ...

متن کامل

Hierarchy in Generic Programming Libraries

Generic programming (GP) is a form of abstraction in programming languages that serves to reduce code duplication by exploiting the regular structure of algebraic datatypes. Several different approaches to GP in Haskell have surfaced, giving rise to the problem of code duplication across GP libraries. Given the original goals of GP, the is a rather unfortunate turn of events. Fortunately, we ca...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006